package fi.foyt.cs.foursquare;

import org.restlet.Application;
import org.restlet.Restlet;
import org.restlet.routing.Router;

public class FoursquareApplication extends Application {
  
  @Override
  public synchronized Restlet createInboundRoot() {

    Router router = new Router(getContext());

    router.attach("/oauth?code={code}", OAuthResource.class).setMatchingQuery(true);
    
    return router;
  }
 
}